#include "introduce.h"
#include "ui_introduce.h"
#include "config.h"
#include <QFontDatabase>

introduce::introduce(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::introduce)
{
    ui->setupUi(this);
    setWindowTitle("游戏介绍");
    setWindowIcon(QIcon(GAME_ICON));

    int fontId=QFontDatabase::addApplicationFont(QStringLiteral(":/resource/FGO-Main-Font #0200159.ttf"));   //导入字体文件
    QStringList fontFamilies=QFontDatabase::applicationFontFamilies(fontId);
    QFont font;
    font.setFamily(fontFamilies[0]);
    ui->label->setFont(font);
    ui->label_2->setFont(font);
    ui->label_3->setFont(font);
    ui->label_4->setFont(font);
    ui->label_5->setFont(font);
    ui->label_6->setFont(font);
    ui->label_7->setFont(font);
}

introduce::~introduce()
{
    delete ui;
}






